Fix 64-bit build.
authorsmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Wed, 9 Nov 2005 08:02:59 +0000 (09:02 +0100)
committersmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Wed, 9 Nov 2005 08:02:59 +0000 (09:02 +0100)
Signed-off-by: Steven Hand <steven@xensource.com>
tools/libxc/xc_linux_save.c

index db8c2862b48271080428695f68d161fa42a90334..8e398952b5b87b92a2b7f7b3de3ff603f9690466 100644 (file)
@@ -476,7 +476,7 @@ void canonicalize_pagetable(unsigned long type, unsigned long pfn,
                 /* I don't think this should ever happen */
                 DPRINTF("FNI: [%08lx,%d] pte=%llx,"
                         " mfn=%08lx, pfn=%08lx [mfn]=%08lx\n",
-                        type, i, (uint64_t)pte, mfn, 
+                        type, i, (unsigned long long)pte, mfn, 
                         live_m2p[mfn],
                         (live_m2p[mfn] < max_pfn) ? 
                         live_p2m[live_m2p[mfn]] : 0xdeadbeaf);
@@ -1004,9 +1004,10 @@ int xc_linux_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
                     goto out;
                 }
                 
-                DPRINTF("SUSPEND shinfo %08lx eip %08u edx %08u\n",
-                        info.shared_info_frame,
-                        ctxt.user_regs.eip, ctxt.user_regs.edx);
+                DPRINTF("SUSPEND shinfo %08lx eip %08lx edx %08lx\n", 
+                        info.shared_info_frame, 
+                        (unsigned long)ctxt.user_regs.eip, 
+                        (unsigned long)ctxt.user_regs.edx);
             } 
             
             if (xc_shadow_control(xc_handle, dom, DOM0_SHADOW_CONTROL_OP_CLEAN,